/**
 * Created by liyang on 2017/10/16.
 */
/**
 * 聊天
 */
const fs = require("fs");
class News {
    constructor() {
        console.log('sssqqq')
    }
    /**
     *
     * */
    getNew(req, res) {
        res.writeHead(200, { 'Content-Type' : 'text/json' });
        fs.readFile("news/f.json", function(err, data) {
            // console.log(data.toString());
            res.end(data.toString());
        });
    }
}


module.exports = News;